<!DOCTYPE html>
<html>
<head>
	<!-- <link rel="shortcut icon" href="" type="image/x-icon"> -->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta content="width=device-width,initial-scale=1.0" id="vp" name="viewport">
	<meta name="keywords" content="xin留言板">
	<meta name="description" content="xin留言板">
	<meta name="csrf-token" content="{{ csrf_token() }}"> 
	<title>xin留言板</title>
	<link rel="stylesheet" href="https://cdn.bootcss.com/animate.css/3.5.2/animate.css">
	<link rel="stylesheet" href="{{ URL::asset('css/reset.css') }}">
	<link rel="stylesheet" href="{{ URL::asset('css/tinyImgUpload.css') }}">
	<link rel="stylesheet" href="{{ URL::asset('css/base.css') }}">
	<link rel="stylesheet" href="{{ URL::asset('css/public.css') }}">
	<script src="{{ URL::asset('js/jquery.js') }}"></script>
	<script>hrf = "{{ URL::asset('') }}";console.log(hrf); </script>
</head>
<body>
<!-- <form id="uploadForm" enctype="multipart/form-data" method="post" action="{{ URL::asset('index.php/upload') }}"> -->
<!--      <input type="hidden" name="phone" value="admin" /> -->
<!--      <input type="hidden" name="accesstoken" value="e502345f-dee4-44eb-9243-aeff10cf4fa2"/> -->
<!--      <input type="file" name="photo" id="imageFile"  /> -->
<!--      <button >上传</button> -->
<!-- </form> -->
<div class="header">
	<div class="header-top">
		<div class="searchnav2">
        <ul class="topnav">
            <li><a href="{{ URL::asset('index.php/message') }}">xin留言板</a></li>
        </ul>
        <div class="login-info" id="login_no">
        	<a id="regBtn" href="javascript:void(0);" uigs="home_reg_top">注册</a>
            <a id="loginBtn" href="javascript:void(0);" uigs="home_login_top">登录</a>
        </div>
        <div class="login-info" id="login_yes" style="display: none;">
        	<a id="home" href="{{ URL::asset('index.php/userManage') }}" uigs="home_index">会员中心</a>
            <a target="_blank" href="javascript:void(0);"  class="yh"><img src="http://wx.qlogo.cn/mmopen/vi_32/J7icgYrfcKJ1pmajEtnr6YEI7LusRkBicJUFYK8UEUGrmCxJDjVPeDLvAnoEu0LS80yhR7Q2ClyFiaa5xj4PTSGMQ/96" width="22" height="22"><span></span></a>
            <div class="login-pop" id="login_menu" style="display: none;">
                <i></i>
                <a href="javascript:void(0);" id="quit">退出</a>
            </div>
        </div>
    </div>
	</div>
	
</div>
<!-- 登录注册板块/begin -->
<div id="content-login">
	<div class="outbg"></div>
	<div class="page-outer-wrapper">
	  <div class="page-inner-wrapper">
	    <div id="popup_login" class="page ">
	      <form id="popup_login_form" >
	        <h2>会员登录</h2>
	        <fieldset>
	          <div class="field-tips"></div>
	          <div class="field">
	              <input type="text" name="name" class="input-text" placeholder="手机号 / 邮箱">
	          </div>
	          <div class="field">
	            <input class="login_pwd" type="password" name="password" placeholder="密码">
	          </div>
	          <div class="field">
	            <input class="btn btn-sns" type="button" value="登录"  >
	          </div>
	          <div class="form-footer">
	           <!--  <span>第三方登录</span>
	            <ul class="login-third-party">
	                <li><a class="wechat" href="#">微信登录</a></li>
	              <li><a class="weibo" target="_top" href="#">微博登录</a></li>
	            </ul> -->
	            <a href="javascript:void(0);" id="regin">注册帐号</a>
	          </div>
	        </fieldset>
	      </form>
	    </div>
	    <div id="popup_register" class="page is-hidden">
	        <form id="popup_register_form">
	            <h2>注册会员</h2>
	            <fieldset>
	                <div class="field-tips"></div>
	                <div class="field">
	                    <input type="text" name="phone" placeholder="手机号 / 邮箱" autocomplete="off">
	                </div>
	                <div class="field">
	                    <input type="password" name="password" placeholder="创建密码" autocomplete="off">
	                </div>
	                <div class="field">
	                    <input type="text" name="name" placeholder="昵称" maxlength="14" autocomplete="off">
	                </div>
	                <div class="field">
	                    <input class="btn btn-sns" type="button" value="确认注册"  >
	                </div>
	               <!--  <div class="field center agreement">
	                    注册即表示你同意遵守 <a href="#" target="_blank">《使用协议》</a>
	                </div> -->
	                <div class="form-footer">
	                    <a href="javascript:void(0);" id="logjoin">登录xin留言板</a>
	                </div>
	            </fieldset>
	        </form>
	    </div>
	  </div>
	</div>
</div>
<!-- 登录注册板块/end -->

<div class="wrap">
	<div class="wrap-left">
		<div class="comments-tit">
	    	<div class="com-pic" id="com-text">
	    		<img src="{{ URL::asset('images/wechatcur.png') }}">
<!-- 	    		<textarea placeholder="写下你的评论"></textarea> -->
					<div class="col-sm-10">
                    @include('vendor.UEditor.head')
                    <!-- 加载编辑器的容器 -->
                    <script id="container" name="content" type="text/plain" style='width:100%;height:200px;'>
     
                    </script>
                    <!-- 实例化编辑器 -->
                    <script type="text/javascript">
                        var ue = UE.getEditor('container',{
                        	toolbars: [
                        	    ['source', 'simpleupload', 'insertimage']
                        	]
                            });
                        ue.ready(function(){
                            ue.execCommand('serverparam', '_token', '{{ csrf_token() }}'); 
                 
                        });
                        
                        
                    </script>
                </div>
<!-- 	    		<div id="upload"></div> -->
	    		<button class="com-button">评论</button>
	    		
	    		<div class="clear"></div>
	    	</div>
	    	<div class="clear"></div>
	    </div>
	    <div class="comments-main">
			<ul>
				
			</ul>
			<div class="com-more">点击加载更多...</div>
		</div>
	</div>
</div>
   <script src="{{ URL::asset('js/tinyImgUpload.js') }}"></script>
	
	<script>
		// 设置参数
		// var options = {
		//     path: '{{ URL::asset('index.php/upload') }}',    // 上传图片时指定的地址路径，类似form变淡的action属性
		//     onSuccess: function (res) {    // 上传成功后执行的方法，res是接收的ajax响应内容
		//         console.log(res);  
		//     },
		//     onFailure: function (res) {    // 上传失败后执行的方法，res是接收的ajax响应内容
		//         console.log(res);
		//     }
		// }
		// 执行生成图片上传插件的方法, 第一个参数是上面提到的准备生成组件的div选择器，第二个参数是设置的组件信息，执行方法后返回一个函数指针，指向执行上传功能的函数，通过把执行上传功能的函数暴露出来，用户就可以自己控制何时上传图片了。
// 		var picarr=[];
// 		var upload = tinyImgUpload('#upload');  
// 		$('#upload').on('DOMNodeInserted',function(){
// 	        if($('.img-thumb').length >8){
// 				console.log($('.img-thumb').length);
// 				$('.img-up-add').hide();

// 			}else {
// 				$('.img-up-add').show();
// 			}
// 	    })
		
	</script>
	<script src="{{ URL::asset('js/script.js') }}"></script>
	<script src="{{ URL::asset('js/index.js') }}"></script>
</body>
</html>